From 06a7e3fd4bd5e7b3b49c492e8a1dd6fd1bc6018b Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Tue, 25 Mar 2008 10:24:26 +0000 Subject: [PATCH] ioemu: fix VNC case when switching from 32bpp to 24bpp Even if we don't need to tell the client to redepth, we need to tell e.g. xenfb that we can't share the buffer any more. Signed-off-by: Samuel Thibault --- tools/ioemu/vnc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ioemu/vnc.c b/tools/ioemu/vnc.c index 9c9cbb3fc0..6cfba55be9 100644 --- a/tools/ioemu/vnc.c +++ b/tools/ioemu/vnc.c @@ -1636,8 +1636,8 @@ static void vnc_dpy_colourdepth(DisplayState *ds, int depth) switch (depth) { case 24: - if (ds->depth == 32) return; ds->shared_buf = 0; + if (ds->depth == 32) return; depth = 32; break; case 0: -- 2.30.2